package com.seari.groovyrunner.service;

import com.seari.groovyrunner.bean.GroovyTask;

import java.util.List;

public interface GroovyService {

    List<GroovyTask> getTaskListByName(String taskName, String page, String limit);

    List<GroovyTask> getAllTaskList();

    int addService(GroovyTask task);

    int changeScriptStateById(int i, int id);

    List<GroovyTask> getTaskListByService(String service);

    int updateService(GroovyTask task);

    int getTaskListCountByName(String taskName);

    GroovyTask getTaskByID(Integer id);

    List<GroovyTask> getTaskListByPath(String path);

    int deleteTaskByID(Integer id);
}
